package com.learnjava.service.impl;

import com.learnjava.bean.Info;
import com.learnjava.dao.InfoDao;
import com.learnjava.dao.impl.InfoDaoImpl;
import com.learnjava.service.InfoService;

import java.util.List;

/**
 * @Description:
 * @Author: xiangty
 * @Date: 2018-03-30
 */
public class InfoServiceImpl implements InfoService {
    private InfoDao infoDao = new InfoDaoImpl();
    @Override
    public List<Info> getAll() {
        return infoDao.getAll();
    }

    @Override
    public List<Info> getInfoByUsername(String username) {
        return infoDao.getInfoByUsername(username);
    }

    @Override
    public Integer addInfo(Info info) {
        return infoDao.addInfo(info);
    }

}
